<template>
    <!-- 0代表样式组件，1代表真实组件 -->
    <div class="test2" v-sdrag:style="{com: comName}"> 
        
    </div> 
</template>
<script>
    import realName from '../../config/style-components-name';
    export default {
        data () {
            return {
                comName: realName.COM4
            }
        },
        methods: {

        },
        created () {

        },
    }
</script>
<style scoped>
    .test2 {
        background: blue;
        width: 100px;
        height: 100px;
    }
</style>